﻿@model GiaoTrinhEPU.Models.RegisterModel
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_LayoutLogin.cshtml";
}


<div class="container">

    <header>
        <h1>Quản Lý Giáo Trình Thư Viện <span>EPU</span></h1>
    </header>
    <section>
        <div id="container_demo">
            <div id="wrapper">
                <div id="login" class="animate form">
                    @using (Html.BeginForm("Register","Account"))
                    {
                        @Html.AntiForgeryToken()
                      
                        <h1>ĐĂNG KÝ </h1>
                        
                        <p>
                            <label for="usernamesignup" class="uname" data-icon="u">Your username</label>
                            @Html.TextBoxFor(model => model.UserName, new { placeholder = "Tên đăng nhập", required = "required" })
                            @Html.ValidationMessageFor(model=>model.UserName)
                            @Html.ValidationMessage("")
                        </p>
                        <p>
                            <label for="emailsignup" class="youmail" data-icon="e">Your email</label>
                            @Html.TextBoxFor(model => model.Email, new { placeholder = "Địa chỉ email", required = "required" ,type="email"})
                            @Html.ValidationMessageFor(model=>model.Email)
                        </p>
                        <p>
                            <label for="passwordsignup" class="youpasswd" data-icon="p">Your password </label>
                            @Html.PasswordFor(model => model.Password, new { placeholder = "Mật khẩu", required = "required" })
                            @Html.ValidationMessageFor(model=>model.Password)
                        </p>
                        <p>
                            <label for="passwordsignup_confirm" class="youpasswd" data-icon="p">Please confirm your password </label>
                            @Html.PasswordFor(model => model.ConfirmPassword, new { placeholder = "Xác nhận mật khẩu", required = "required" })
                            @Html.ValidationMessageFor(model=>model.ConfirmPassword)
                        </p>
                        <p class="signin button">
                            <input type="submit" value="Sign up" />
                        </p>
                        <p class="change_link">
                            Bạn đã có tài khoản ?
								@Html.ActionLink("Hãy Đăng Nhập","Login","Account")
                        </p>
                    }
                </div>

            </div>
        </div>
    </section>
</div>
